$(window).ready(function() {
	$('#magazine').turn({
		display: 'double',
		acceleration: true,
		gradients: !$.isTouch,
		elevation: 50,
		when: {
			turned: function(e, page) {
				console.log('Current view: ', $(this).turn('view'));
			}
		}
	});
});

$(window).bind('keydown', function(e) {

	if(e.keyCode == 37)
		$('#magazine').turn('previous');
	else if(e.keyCode == 39)
		$('#magazine').turn('next');

});
var magazine = document.getElementById("magazine");
var xuan = document.getElementById("xuan");
setTimeout(function(){
	magazine.style.opacity="1";
	xuan.style.display="none";
},1000)

